package com.wltt.product.frfront.controller;

import com.wltt.product.frfront.model.ResultData;
import com.wltt.product.frfront.service.SwingLocationWaitService;
import jakarta.annotation.Resource;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/api/swingLocationWait")
public class SwingLocationWaitController {

    private static final Logger logger = LogManager.getLogger(SwingLocationWaitController.class);

    @Resource
    private SwingLocationWaitService swingLocationWaitService;

    /**
     * 查询所有摆动位置等待
     *
     * @return
     */
    @ResponseBody
    @RequestMapping(value = {"/allSwingLocationWait"}, method = RequestMethod.POST)
    public ResultData allSwingLocationWait() {
        return swingLocationWaitService.allSwingLocationWait();
    }

}
